package com.huawei.appmarket.framework.coreservice;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import o.dhc;
import o.Logger;
import o.dpl;
import o.ett;

public class AGCoreService extends Service {
    private final dhc ˎ = new dhc();

    public void onCreate() {
        super.onCreate();
        dpl.ˋ(this, 16);
        Logger.ˎ("AGCoreService", "Enter onCreate.");
    }

    protected void attachBaseContext(Context context) {
        super.attachBaseContext(context);
        this.ˎ.ˊ(context.getApplicationContext());
    }

    public int onStartCommand(Intent intent, int i, int i2) {
        Logger.ˎ("AGCoreService", "Enter onStartCommand.");
        return 2;
    }

    public IBinder onBind(Intent intent) {
        ett.ˏ().ॱ("AgcConnect");
        return this.ˎ;
    }

    public boolean onUnbind(Intent intent) {
        ett.ˏ().ˊ();
        return super.onUnbind(intent);
    }
}
